INCLUDES = -I../
WARNINGS = -Wall -g -pedantic
CC = gcc                       
CFLAGS = $(INCLUDES) $(WARNINGS)
CPPFLAGS = $(INCLUDES)

OUTFILE=sscalc
SRCSTOTEST=$(shell ls -f ../*.c)
SRCS = sscalc.c $(SRCSTOTEST) 
OBJS  = $(SRCS:.c=.o)

main: dep $(OBJS)
	$(CC) $(CFLAGS) $(SRCS) -o $(OUTFILE)

ifeq (.depend,$(wildcard .depend))
include .depend
endif

dep:
	$(CC) $(CPPFLAGS) -MM $(SRCS) > .depend

clean:
	rm *.o

doc:	Doxyfile $(SRCS)
	doxygen Doxyfile
